import * as types from '@src/model/actionType';

// 交易统计曲线
const transactionState = {
  TotalCount: 1,
  GroupList: [
    {
      TxNum: 4, // 当前链中所有的交易总和
      Timestamp: 1606669261, // 该链创建时间
    },
  ],
};

function transaction(state = transactionState, action) {
  switch (action.type) {
    case types.transaction:
      return { ...state, ...action.payload };
    default:
      return state;
  }
}

export default transaction;
